package com.anolesoft.yr.mbus.pre.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PrePromoteQueryVO implements Serializable {

    private String objuid;
    private String promoteCode;
    private String infoSource;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//yyyy-MM-dd HH:mm:ss
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date sourceTime;
    private String intoCompany;
    private String clientRegion;
    private String clientName;
    private String contact;
    private String contactPerson;
    private String contactNumber;
    private String clientDemand;
    private Integer purchaseQuantity;
    private String receivePerson;
    private Integer state;
    private String salesManager;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//yyyy-MM-dd HH:mm:ss
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dispatchTime;
    private String salesPerson;
    private String remark;
    private String ccUserUid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")//yyyy-MM-dd HH:mm:ss
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date ccTime;

    private String value;
    private String text;

}
